-- GENERATED SPELL FOR [Gutspill] --


function spell0_6170(pUnit, Event) --@Tainted Howl,Self--
pUnit:FullCastSpellOnTarget(3424,pUnit)
pUnit:RegisterEvent('Sorts_6170', 628, 1)
end

function Sorts_6170(pUnit, Event)
local choix_sorts_6170 = math.random(0, 0)
if choix_sorts_6170 == 0 then
pUnit:RegisterEvent('spell0_6170', 1, 1)
end
end

function mob6170_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6170', math.random(1500, 3000), 1)
end

function mob6170_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6170_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6170_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6170, 1, 'mob6170_Action')
RegisterUnitEvent(6170, 2, 'mob6170_Leave')
RegisterUnitEvent(6170, 3, 'mob6170_Kill')
RegisterUnitEvent(6170, 4, 'mob6170_Die')
